from flask.helpers import make_response
from flask.json import jsonify


from . import api

@api.app_errorhandler(404)
def page_not_found(e):
    make_response()
    response = jsonify(code=404, msg='请求路径不存在')
    response.status_code = 404
    return response